import request from "@/utils/Request";
export default {
	downloadFile(id) {
		return request({
			url: "/sys/file/download",
			method: "post",
			data: {
				id: id,
			},
			responseType: "blob",
		});
	},
	uploadFile(file) {
		return request({
			url: "/sys/file/upload",
			method: "post",
			data: file,
		});
	},
};
